package com.shop.test;

import java.sql.Connection;

import com.shop.bean.Page;
import com.shop.dao.BaseDao;
import com.shop.service.AdminService;
import com.shop.service.GoodsService;
import com.shop.service.impl.AdminServiceImpl;
import com.shop.service.impl.GoodsServiceImpl;

public class test {
	public static void main(String[] args) {
		BaseDao b = new BaseDao();
		AdminService as = new AdminServiceImpl();
		GoodsService g = new GoodsServiceImpl();
		System.out.println(as.selectAdmin("zhangsan", "123456"));
		Connection con = b.getCon();
		System.out.println(con);
		System.out.println(g.selectgoods(1, 5));
	}
}
